package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.UserPageQueryDTO;
import com.sky.entity.TUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface TUserMapper {

    /**
     * 分页查询用户
     * @param userPageQueryDTO
     * @return
     */

    Page<TUser> pageQuery(UserPageQueryDTO userPageQueryDTO);

    /**
     * 根据id查询用户
     * @param id
     * @return
     */
    @Select("select * from game_forum.t_user where user_id=#{id}")
    TUser getById(Long id);

    /**
     * 用户修改
     * @param tuser
     */
    void update(TUser tuser);
}
